package cn.com.api.mapper;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Delete;  
import org.apache.ibatis.annotations.Insert;  
import org.apache.ibatis.annotations.Select;  
import org.apache.ibatis.annotations.Update; 

import cn.com.api.entity.ApiU_discover_resources;
import cn.com.api.mapper.base.U_discover_resourcesMapperBase;

//DAO
public interface ApiU_discover_resourcesMapper extends U_discover_resourcesMapperBase {

 	//新增对象后返回记录ID
    public int U_discover_resourcesInsertion(ApiU_discover_resources u_discover_resources);
    
    
    @Select("select * from u_discover_resources where conn_id = #{discover_id}")
	public List<ApiU_discover_resources> getApiU_discover_resourcesBydiscover_Id(
			String discover_id);
	
	 @Delete("DELETE FROM U_DISCOVER_RESOURCES  WHERE CONN_ID = #{conn_id}")
	    public int deleteU_discover_resources_byconnid(Integer id);
	 
    
}


